//
//  Dictionary.h
//  CEDict
//
//  Created by Eric Nadeau on 07-06-01.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Entry.h"
#import "Parser.h"


@interface Dictionary : NSObject {
	NSArray* entries;
}

// Initializes Dictionary with an array of Entry instances
-(Dictionary*) initWithEntries: (NSArray*) dictionaryEntries;

// Searches the Dictionary for a collection of Entry instances
-(NSArray*) search: (NSString*) query;

// Creates a Dictionary instance after loading entries from a given file
+(Dictionary*) loadFromFile: (NSString*) filename;

@end
